package com.service.impl;

import java.util.UUID;

import org.apache.ibatis.session.SqlSession;

import com.dao.ProductSmallCategoryDao;
import com.entity.ProductSmallCategory;
import com.service.ProductSmallCategoryService;
import com.sqlSessionFactory.SqlSessionFactoryUtil;

public class ProductSmallCategoryServiceImpl implements
		ProductSmallCategoryService {

	@Override
	public int addProductSmallCategory(ProductSmallCategory productSmallCategory) {
		SqlSession sqlSession = SqlSessionFactoryUtil.getSqlSession();
		ProductSmallCategoryDao productBigCategoryDao = sqlSession.getMapper(ProductSmallCategoryDao.class);
		int recorder = productBigCategoryDao.addProductSmallCategory(productSmallCategory);
		sqlSession.commit();
		sqlSession.close();
		return recorder;
	}

}
